package com.spring.bean;

import com.spring.service.MovieFinder;

/**
 * @ 类名称：SimpleMovieLister
 * @ 类描述：
 * @ 创建人：Jesse zhu
 * @ 修改人：
 * @ 修改时间：2020-06-04  13:41
 * @ 修改备注：
 * @ version：0.1
 */
public class SimpleMovieLister {
    //the SimpleMovieLister 拥有一个MovieFinder的依赖
    private MovieFinder movieFinder;

    //构造注入
   /* public SimpleMovieLister(MovieFinder movieFinder) {
        System.out.println("构造注入");
        this.movieFinder = movieFinder;
        movieFinder.find();
    }*/

    //属性注入
    public void setMovieFinder(MovieFinder movieFinder) {
        System.out.println("属性setter注入");
        this.movieFinder = movieFinder;
        movieFinder.find();
    }
}
